/**
 * Copyright (c) 2006-2007 Jinyi.lu
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of GNU LGPL license by gun.org
 * which accompanies this distribution, and is available at
 * http://gnu.feld-it.at/copyleft/lesser.html
 * 
 * Project Homepage : http://code.google.com/p/demou
 * Source Code: svn checkout http://demou.googlecode.com/svn/trunk/ demou
 * Mailing list : jinyi.lu@gmail.com
 *                stonelu@126.com
 *
 *  
 * Contributors:
 *     JinYi.Lu - initial API and implementation
 */
package cn.tworen.demou.rtmp;

import cn.tworen.demou.cmd.IInvokeCmd;
import cn.tworen.demou.stream.PlayList;

/**
 * Created on  2007-2-2
 *
 * Title       : ApplicationAdapter.java
 * Description : 
 * 
 * @author     : LuJinYi
 * @version    : 1.0
 * @Date       : 2007-2-2
 * History     : 
 * 
 */
public class Application{
	private final Clients clients = new Clients();
	private final PlayList playList = new PlayList();
	private final SharedObjectList sharedObjectList = new SharedObjectList();
	private String name = null;
	private String dir = null;
	public Application(String name) {
		this.setName(name);
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Clients getClients() {
		return this.clients;
	}
	public PlayList getPlayList() {
		return this.playList;
	}
	public SharedObjectList getSharedObjectList() {
		return this.sharedObjectList;
	}
	/**
	 * @hibernate.property
	 * @return Returns the dir.
	 */
	public String getDir() {
		return dir;
	}
	/**
	 * @param dir the dir to set
	 */
	public void setDir(String dir) {
		this.dir = dir;
	}
	/**
	 * init app data
	 * now check and load shared object data
	 */
	public void initAppData() {
		
	}
}
